<template>
  <div class="cinema-main">
    <BaseLayer>
      <template v-slot:header>
        <TopBar>
          <router-link tag="div" :to="{name:'cityList'}" class="city-area">
            <span class="city-text">郑州</span>
            <img class="icon icon-arr-down" :src="require('@/assets/imgs/home/arr-down.png')" alt>
          </router-link>
          <div class="title">影院</div>
          <div class="search">
            <img class="icon" :src="require('@/assets/imgs/icons/search.png')" alt>
          </div>
        </TopBar>
      </template>
      <template v-slot:default>
        <Position>
          <template v-slot:img-left></template>
          我在: 金水区绿地新都会
          <template v-slot:img-right>
            <span></span>
          </template>
        </Position>
        <div class="cinema-list">
          <CinemaList v-for="item in CinemaList" :key="item.id" :cinema="item"></CinemaList>
        </div>
      </template>
    </BaseLayer>
    <!-- <router-view></router-view> -->
  </div>
</template>

<script>
import TopBar from "@/components/TopBar";
import BaseLayer from "@/components/BaseLayer";
import Position from "./components/Position";
import CinemaList from "./components/CinemaBlock";
export default {
  name: "Cinema",
  components: {
    TopBar,
    BaseLayer,
    Position,
    CinemaList
  },
  data() {
    return {
      CinemaList: [
        {
          id: "1",
          title: "耀莱成龙影城 (建业店)",
          address: "金水区普惠路77号绿地之窗尚峰座正大乐城3楼",
          distance: "1.7km",
          price: "19.9元",
          special: "我是药神等4部影片特惠",
          sale: "观影套餐限量特惠",
          card: "开卡特惠,每单2张立减2元"
        },
        {
          id: "2",
          title: "耀莱成龙影城 (建业店)",
          address: "金水区普惠路77号绿地之窗尚峰座正大乐城3楼",
          distance: "1.7km",
          price: "19.9元",
          special: "我是药神等4部影片特惠",
          sale: "观影套餐限量特惠",
          card: "开卡特惠,每单2张立减2元"
        },
        {
          id: "3",
          title: "耀莱成龙影城 (建业店)",
          address: "金水区普惠路77号绿地之窗尚峰座正大乐城3楼",
          distance: "1.7km",
          price: "19.9元",
          special: "我是药神等4部影片特惠",
          sale: "观影套餐限量特惠",
          card: "开卡特惠,每单2张立减2元"
        },
        {
          id: "4",
          title: "五一影城",
          address: "管城回族区东风南路商鼎路",
          distance: "1.7km",
          price: "19.9元",
          special: "我是药神等4部影片特惠",
          sale: "观影套餐限量特惠",
          card: "开卡特惠,每单2张立减2元"
        }
      ]
    };
  },

  methods: {}
};
</script>

<style lang='scss' scoped>
@import "../../assets/style/common/common.scss";
.cinema-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  .top-bar-main {
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: $baseTopHeight;
    background-color: #33363d;
    align-items: center;
    box-sizing: border-box;
    padding: $basePadding;
    color: $baseFontColor;
    .city-area {
      display: flex;
      align-items: center;
      height: 36px;
      padding: 0 4px;
      .icon.icon-arr-down {
        width: 12px;
        height: 6px;
        margin: auto 4px;
      }
    }
    .title {
      flex-grow: 1;
      line-height: 36px;
      font-size: 18px;
      color: #fff;
      font-weight: medium;
    }
    .search {
      width: 50px;
      text-align: right;
      .icon {
        width: 18px;
        height: 18px;
      }
    }
  }
  ::v-deep.position {
    .icon {
      width: 14px;
    }
  }
  ::v-deep.scroller-wrapper {
    .content {
      padding-bottom: 140px;
    }
  }
}
</style>
